<div class="clearfix">
    <div class="x-header-top">
        <div class="header-inner">
            <h2 class="tit">安全中心</h2>
        </div>
    </div>
    <div class="main-container">
        <div class="security-center">
            <!--<div class="aq-group">-->
                <!--登录账号：<b class="aq-account" id="J_UserName_View"></b>-->
            <!--</div>-->
            <div class="aq-group">
                当前用户等级：<em class="aq-level">中</em><b class="aq-leveltip">（建议您开启全部安全设置，以保障账户及资金安全）</b>
            </div>
            <div class="aq-group aq-tabinfo">
                <table class="aq-table">
                    <thead>
                    <tr>
                        <th>完善信息</th>
                        <th>绑定手机</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>
                            <p class="aq-intro">
                                创建全民秀直播账号，提供多种登录方式
                            </p>
                            <p>
                                <a href="javascript:;" class="aq-btn aq-btn-2" OpenWindow=":UserChangePassword:" id="J_User_Change_Pwd">修改密码</a>
                            </p>
                        </td>
                        <td>
                            <p class="aq-intro">
                                绑定手机号可以用于登录网站，找回密码，赢取新人大礼包。
                            </p>
                            <p>
                                <a href="javascript:;" class="aq-btn aq-btn-1" OpenWindow="" id="J_User_Bound" onclick="_czc.push(['_trackEvent', '绑定手机', '绑定手机', '个人中心绑定手机']);">立即绑定</a>
                            </p>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        if (!_StateData.IsLogin) {
            $.CommonMain.Modal_Tip('请先登录', {Timeout: 1000});
            location.href = '/';
        }
        (_PageData.UserInfo.Email)?$('#J_UserName_View').text(_PageData.UserInfo.Email):$('#J_UserName_View').text(_PageData.UserInfo.Phone);
        if(_PageData.UserInfo.Phone){
            $('#J_User_Bound').removeAttr('OpenWindow').addClass('aq-btn-3').removeClass('aq-btn-1');
            return;
        }
        if(_PageData.UserInfo.OAuth_QQ_ID || _PageData.UserInfo.OAuth_Weibo_ID || _PageData.UserInfo.OAuth_Weixin_ID){
            $('#J_User_Change_Pwd').removeAttr('OpenWindow').addClass("aq-btn-3").removeClass("aq-btn-2");
            $('#J_User_Bound').attr('OpenWindow',":UserChangeBound:");
            return;
        }else if(_PageData.UserInfo.Email){
            $('#J_User_Bound').attr('OpenWindow',":UserChangeBoundEmail:");
            return
        }else{
            $('#J_User_Bound').removeAttr('OpenWindow').addClass('aq-btn-3').removeClass('aq-btn-1');
            return;
        }
    })

</script>